import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int []array={56,45,34,23,12,67,78,89,90,1};
        Heap heap=new Heap(array);
        heap.initHeap(array);
        heap.createHeap();
        for (int i = 0; i < 10; i++) {
            array[i]= heap.poll();
            System.out.print(array[i]+" ");
        }
    }
}
